class MessageRenderer extends eui.ItemRenderer {
    private dataGroup:eui.Group;
    private Dialog:eui.Image;
    private MessageLabel:eui.Label;
    public constructor(){
        super();
        this.dataGroup=new eui.Group();
        this.Dialog=new eui.Image();
        
        this.MessageLabel=new eui.Label();
        this.dataGroup.addChild(this.Dialog);
        this.dataGroup.addChild(this.MessageLabel);
        this.addChild(this.dataGroup);
    }
    protected dataChanged():void{
        //显示数据中的 label 值
            this.dataGroup.height=154;
            this.Dialog.source="resource/assets/FriendsHome/对话框"+this.data.pic_num+".png";
            this.Dialog.x=0;
            this.Dialog.y=0;
            this.Dialog.scale9Grid=new egret.Rectangle(30,0,180,154);
            this.MessageLabel.height=60;
            this.MessageLabel.textColor=0x000000;
            this.MessageLabel.x=30;
            this.MessageLabel.y=50;
            this.MessageLabel.size=32;
            this.MessageLabel.verticalAlign="middle";
            this.MessageLabel.text=this.data.label;
            this.Dialog.width=this.MessageLabel.x+this.MessageLabel.width+163;
            this.dataGroup.width=this.Dialog.width+60;
    }
   
}